package com.xdcplus.web.common.enums;

/**
 * 班别枚举
 *
 * @author Fish.Fei
 * @date 2023/05/30
 */
public enum ShiftCodeEnum {
    A("早班"),
    B( "晚班"),
    ;


    private String msg;


    ShiftCodeEnum( String msg) {
        this.msg = msg;
    }


    public String getMsg() {
        return msg;
    }
    public static String getMsgByCode(String code) {
        for (ShiftCodeEnum packPacketStatusEnum : values()) {
            if (packPacketStatusEnum.name().equals(code)) {
                return packPacketStatusEnum.getMsg();
            }
        }
        return null;
    }
}
